<?php echo $this->load->view('meta'); ?>
<script language="javascript" type="text/javascript" src="<?=base_url()?>js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
<!--
    tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_buttons1: "bold,italic,underline,strikethrough,sub,sup,|,hr,charmap,|,bullist,numlist,|,link,unlink,|,undo,redo,|,cut,copy,paste,|,code",
		theme_advanced_buttons2: "",
		theme_advanced_buttons3: "",
        convert_urls : false,
        relative_urls : false,
        entity_encoding : ""
    });
	
// -->
</script>
<title>xa-ncsu | blog</title>
<?php echo $this->load->view('header'); ?>
<div id="content">
<?=$this->validation->error_string;?>
<?=form_open('blog/publish');?>
<fieldset>
	<legend><span>create a blog entry</span></legend>
	<ol class="fivehundred">
		<li><label for="title">title</label>
			<input type="input" name="title" /></li>
		<li><label for="body">body</label>
			<textarea name="body" rows="30"></textarea>
		</li>
		<li><label for="public">access</label>
			<?=form_dropdown('public',$dropdown_public,'1')?></li>
		<li><label for="publish">publish</label>
			<?=form_dropdown('published',$dropdown_publish,'1')?></li>
		<li><?=form_submit('','publish') ?> <?=anchor('blog', 'Cancel');?></li>
	</ol>
</fieldset>
<?=form_close()?>
</div>
<?php echo $this->load->view('footer'); ?>